Learn how to customize plurals and other declensions dictionaries through the Algolia dashboard.
ignorePlurals
and set the appropriate languages using queryLanguages
, these variations are considered to be equivalent during search.
For example, with ignorePlurals
enabled and queryLanguages
set to English, the queries “shirt” and “shirts” return the same results.
With ignorePlurals
enabled and queryLanguages
set to German, the queries “hemd”, “hemde”, “hemds”, “hemden”, and “hemdes” return the same results. Some groups of declined forms also include common diminutives. For example, the Dutch declensions dictionary includes “hemd”, “hemden”, “hemdje”, and “hemdjes” in its group of alternatives.
The ignorePlurals
parameter relies on language-specific dictionaries.
You can customize which words to consider as declined forms using the Algolia dashboard.
Each Algolia application uses one declension dictionary per language. This means that you can’t create different customizations for the same language for different indices in one Algolia application. If you want to create certain equivalencies only when searching certain indices, consider using synonyms instead.
ignorePlurals
and other language-specific features in conjunction with the queryLanguages
setting.
For more information, see How to set an index query language to learn more.